package jxau.jwgl.service;

import jxau.jwgl.api.JWGLServerException;
import jxau.jwgl.commons.entity.CourseCategory;
import jxau.jwgl.commons.entity.Semester;

import java.util.List;

/**
 * CommonDataService
 *
 * @author LongShu 2017/06/09
 * @see jxau.jwgl.api.CommonDataApi
 */
public interface CommonDataService {

    /**
     * 获取学期列表
     *
     * @param username 学号
     * @throws JWGLServerException
     */
    List<Semester> semesterList(String username) throws JWGLServerException;

    /**
     * 获取课程分类
     *
     * @param username 学号
     * @throws JWGLServerException
     */
    List<CourseCategory> courseCategory(String username) throws JWGLServerException;

}
